package com.itbaizhan.shopping_order_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itbaizhan.shopping_common.pojo.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper extends BaseMapper<Orders> {

    // 查询订单详情
    Orders findById(String id);

    // 查询用户所有订单
    List<Orders> findByUserId(@Param("userId") Long userId,@Param("status") Integer status);
}
